package com.book_management.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.book_management.entity.SysUser;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.io.Serializable;

/**
 * @author xiangqian
 * @date 2022/12/2 17:43
 * @description:
 */

@Mapper
public interface SysUserDao extends BaseMapper<SysUser> {

    @Select("select password from user where phone=#{phone}")
    SysUser selectByPhone(String phone);

    @Select("select * from sys_user where phone = #{phone}")
    SysUser selectUserByPhone(String phone);

}
